//
// NL3D_CExpandLightmap.java
// Copyright (C) 2010  "Naush" <naush _ hotmail _ fr>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>./* ----------------------------------------------------------------------------







package org.ryzom.nel.threed;

import org.ryzom.nel.misc.CRGBA;

public class NL3D_CExpandLightmap {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  public NL3D_CExpandLightmap(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  public static long getCPtr(NL3D_CExpandLightmap obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nel3dJNI.delete_NL3D_CExpandLightmap(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public void setColorTile(CTileColor value) {
    nel3dJNI.NL3D_CExpandLightmap_ColorTile_set(swigCPtr, this, CTileColor.getCPtr(value), value);
  }

  public CTileColor getColorTile() {
    long cPtr = nel3dJNI.NL3D_CExpandLightmap_ColorTile_get(swigCPtr, this);
    return (cPtr == 0) ? null : new CTileColor(cPtr, false);
  }

  public void setTLIColor(CRGBA value) {
    nel3dJNI.NL3D_CExpandLightmap_TLIColor_set(swigCPtr, this, CRGBA.getCPtr(value), value);
  }

  public CRGBA getTLIColor() {
    long cPtr = nel3dJNI.NL3D_CExpandLightmap_TLIColor_get(swigCPtr, this);
    return (cPtr == 0) ? null : new CRGBA(cPtr, false);
  }

  public void setLumelTile(SWIGTYPE_p_unsigned_char value) {
    nel3dJNI.NL3D_CExpandLightmap_LumelTile_set(swigCPtr, this, SWIGTYPE_p_unsigned_char.getCPtr(value));
  }

  public SWIGTYPE_p_unsigned_char getLumelTile() {
    long cPtr = nel3dJNI.NL3D_CExpandLightmap_LumelTile_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false);
  }

  public void setWidth(long value) {
    nel3dJNI.NL3D_CExpandLightmap_Width_set(swigCPtr, this, value);
  }

  public long getWidth() {
    return nel3dJNI.NL3D_CExpandLightmap_Width_get(swigCPtr, this);
  }

  public void setHeight(long value) {
    nel3dJNI.NL3D_CExpandLightmap_Height_set(swigCPtr, this, value);
  }

  public long getHeight() {
    return nel3dJNI.NL3D_CExpandLightmap_Height_get(swigCPtr, this);
  }

  public void setMulFactor(long value) {
    nel3dJNI.NL3D_CExpandLightmap_MulFactor_set(swigCPtr, this, value);
  }

  public long getMulFactor() {
    return nel3dJNI.NL3D_CExpandLightmap_MulFactor_get(swigCPtr, this);
  }

  public void setStaticLightColor(CRGBA value) {
    nel3dJNI.NL3D_CExpandLightmap_StaticLightColor_set(swigCPtr, this, CRGBA.getCPtr(value), value);
  }

  public CRGBA getStaticLightColor() {
    long cPtr = nel3dJNI.NL3D_CExpandLightmap_StaticLightColor_get(swigCPtr, this);
    return (cPtr == 0) ? null : new CRGBA(cPtr, false);
  }

  public void setDstPixels(CRGBA value) {
    nel3dJNI.NL3D_CExpandLightmap_DstPixels_set(swigCPtr, this, CRGBA.getCPtr(value), value);
  }

  public CRGBA getDstPixels() {
    long cPtr = nel3dJNI.NL3D_CExpandLightmap_DstPixels_get(swigCPtr, this);
    return (cPtr == 0) ? null : new CRGBA(cPtr, false);
  }

  public NL3D_CExpandLightmap() {
    this(nel3dJNI.new_NL3D_CExpandLightmap(), true);
  }

}
